package thomas.springmvc.ajax.pojo;

import java.io.Serializable;

public class Book implements Serializable{
	
	private static final long serialVersionUID = -4258407164453726044L;
	private Integer id;
	private String name;
	private String author;
	
	public Book(){
		super();
	}
	
	public Book(Integer id, String name, String author){
		this.id = id;
		this.name = name;
		this.author = author;
	}
	
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getAuthor() {
		return author;
	}
	public void setAuthor(String author) {
		this.author = author;
	}
	
	@Override
	public String toString(){
		return "Book [id =" + id + " name= + name" + " author=" + author + "]";
	}
	
}
